<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 老猫 <thinkcmf@126.com>
// +----------------------------------------------------------------------
namespace api\portal\controller;
use cmf\controller\RestBaseController;
use think\Db;

class AboutController extends RestBaseController
{
  public function index () {
    $data = Db::name('option')->where('option_name', 'about_us')->find();
    $data = json_decode($data['option_value'], true);
    $data['content'] = htmlspecialchars_decode($data['content']);
    return $data;
  }
}
